package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)

@ApiModel(value="tbViolationRecord", description="车辆违章信息实体类")
@TableName(value = "tb_violation_record")
public class TbViolationRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车牌号")
    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @ApiModelProperty(value = "车牌号")
    @TableField(value = "car_no")
    private Integer carNo;

    @ApiModelProperty(value = "违章日期")
    @TableField(value = "violation_date")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDate violationDate;

    @ApiModelProperty(value = "违章时间")
    @TableField(value = "violation_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDate violationTime;

    @ApiModelProperty(value = "内容")
    @TableField(value = "content")
    private String content;

    @ApiModelProperty(value = "地区")
    @TableField(value = "region")
    private String region;

    @ApiModelProperty(value = "处罚结果")
    @TableField(value = "punish_result")
    private String punishResult;

    @ApiModelProperty(value = "驾驶员")
    @TableField(value = "driver")
    private String driver;

    @ApiModelProperty(value = "处理结果")
    @TableField(value = "handler_result")
    private String handlerResult;

    @ApiModelProperty(value = "新增时间")
    @TableField(value = "addtime")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDate addtime;


}
